<div class="box"> <!-- Box begins here -->
	<h2>Chỉnh sửa file</h2>
	<!--
	Standard form within a fieldset tag;
-->
	<?php 
		$error = $this->error;
		$data = $this->data;
	?>
<form method="post" action="" enctype="multipart/form-data"><!-- Form -->
				<?php 
					if(isset($this->success)){
						echo "<div class='success'><center><h3>".$this->success."</h3></center></div>";					
					}
				?>
					<fieldset><legend>Thông tin file</legend>
					<div class="input_field">
						<label for="name">Hình ảnh</label>
 						<div id="view_image_news">
 						<br /><img <?php if($data['name']!='') echo 'src="'.$this->baseUrl().FILE_URL.'/'.$data['category'].'/'.$data['name'].'"';?> width="180px"/>
						</div>
					</div>
					<div class="input_field">
							<label for="status">Trạng thái</label>
 							<?php echo $this->formRadio("status",(empty($data['status'])) ? "1" : $data['status'],null,array("1"=>"Kích hoạt","0"=>"Không kích hoạt"),null); ?>
					</div>
					</fieldset>
					<fieldset><legend>Đường dẫn</legend>
					<div class="input_field">
						<label for="link">Đường dẫn</label>
 												
 						<?php echo $this->formText("link",$data['link'],null); ?>
					</div>
					<div class="input_field">
						<label for="alt">Thuộc tính alt</label>				
 						<?php echo $this->formText("alt",$data['alt'],null); ?>
					</div>
					<div class="input_field">
						<label for="rel">Thuộc tính rel</label>				
 						<select name="rel">
 							<option value="" selected="selected" >Do follow</option>
 							<option value="nofollow">No follow</option>
 						</select>
					</div>
					<div class="input_field">
						<label for="title">Thuộc tính title</label>				
 						<?php echo $this->formText("title",$data['title'],null); ?>
					</div>
					</fieldset>
					<input class="submit" type="submit" value="Lưu" />
			</form><!-- /Form -->
</div> <!-- END Box-->